package com.waimai1.waimai.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * (MyOrder)表实体类
 *
 * @author makejava
 * @since 2023-12-03 14:19:39
 */
@Data
@SuppressWarnings("serial")
public class MyOrder extends Model<MyOrder> {
    
    private Integer id;
    private Integer acid;

    private String cinemaName;
    
    private String movieName;
    
    private String hallName;
    //座位数组字符串，隔开。1排3座，1排4座，品牌用来保存products
    private String seat;
    
    private String showTime;
    //购买数量
    private Integer ticketNumber;
    
    private String takePhone;
    
    private Double totalPrice;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    
    private Integer status;
    
    private String outTradeNo;
    
    private String hwOrderId;
    
    private String hwStatus;
    
    private String wepayOrderId;
    
    private String qrCode;
    
    private String ticketCode;
    
    private String openid;
    //可以写入品牌商品详情
    private String comments;
    
    private String outRefundNo;
    //取餐类型，EAT_IN:堂食，    TAKE_AWAY:外带  WaiMai：外卖
    private String eatType;
    
    private String imgUrl;
    //包括本地店铺shopid
    private Integer brandId;
    //包括商品id，电影则为场次id
    private String restaurantId;
    //本地单保存的商品类型
    private String remark;
    
    private String coupon;

    private String receiveInfo;//外卖收货人信息

    private String courierInfo;//外卖骑手信息

    private String refundInfo;//退款信息

    private Double refundPrice;//应退款

    private Double actualRefundPrice;//实退款
    private Integer tuanId;

    private Integer localShopId;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

